Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updates to the release GA #513

Merged
merged 11 commits into from
Jun 18, 2024
Merged

updates to the release GA #513

merged 11 commits into from
Jun 18, 2024

Conversation

djarecka
Copy link
Member

  • adding other formats generator to the GA
  • adding script to "fix" pydantic auto generated version
  • had to take some of the commit from other branch thar fixes issues with linkml model

@Remi-Gau @yibeichan - take a look if that makes sense, if it does we should merge to main and see if it generates the correct release PR when triggered

run: |
gen-pydantic --pydantic-version 2 linkml-schema/reproschema.yaml > reproschema_model_autogen.py
python scripts/fix_pydantic.py reproschema_model_autogen.py reproschema_model.py
pre-commit run --files reproschema_model.py
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the file is auto-generated we could just not lint it with pre-commit, but if we do then this step in workflow must have continue-on-error or an always

otherwise precommit will fail and stop everything: see here https://github.com/ReproNim/reproschema/actions/runs/9568185070/job/26377757321?pr=513#step:5:162

See: https://stackoverflow.com/questions/62045967/is-there-a-way-to-continue-on-error-while-still-getting-correct-feedback

I think always() is the recommended way or that continue-on-error was deprecated

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should run this at some point, since this will be later added to reproschema-py (and perhaps if we do it here it will be easier to automatically push to to reproschema-py)

@@ -36,6 +36,33 @@ jobs:
python scripts/jsonParser.py
reproschema validate examples

generate_other_formats:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note that this will generate the files on every PR but that they will no be added to the repo or the release

files generated on a given job are not passed the following ones in github action, so maybe better to have the file generation happen in the release job

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I didn't get the structure at the beginning, just moved

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will be testing || true

@djarecka djarecka merged commit 693dec1 into ReproNim:main Jun 18, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants